package cn.itsource.common.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    private Integer currentPage = 1;

    //每页条数
    private Integer pageSize = 10;

    //关键字查询
    private String keyword;

    //开始条数
    public Integer getBegin() {
        return (currentPage - 1) * pageSize;
    }
}
